package com.jb.workflow.app.client;

import java.io.Serializable;

public class ServerURL implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3626756821816141261L;
	
	//public final static String HOST = "172.21.15.103:8080/kft-activiti-demo/rest";//
	//public final static String HOST = "localhost:8080/kft-activiti-demo/rest";//
	
	//for dev env
	//public final static String HOST = "10.0.2.2:8080/jbworkflow";//
	
	//for working env
	public final static String HOST = "jiaoba.duapp.com";//
	
	public final static String HTTP = "http://";
	public final static String HTTPS = "https://";
	
	public final static String URL_SPLITTER = "/";
	//private final static String URL_UNDERLINE = "_";
	
	private final static String URL_API_HOST = HTTP + HOST + URL_SPLITTER + "rest/";
	
	public final static String UPDATE_NEW_VERSION = HTTP + HOST + "/config/AppUpdateInfo.xml";
	
	public final static String TODO_LIST = URL_API_HOST + "runtime/tasks";
	// form/form-data?taskId=32525
	public final static String TASK_FORM_DATA = URL_API_HOST + "form/form-data";
	
	// 根据表单发布新流程实例
	public final static String PUB_NEW_INST = URL_API_HOST + "form/form-data";
	
	//
	//登录：identity/users/
	public final static String LOGIN = URL_API_HOST + "identity/users/";
	
	//操作任务：runtime/tasks/{taskId}
	public final static String OPERATE_TASK = URL_API_HOST + "runtime/tasks/";
	
	public final static String SUBMIT_TASK_FORM = URL_API_HOST + "form/form-data";
	
	//正在运行的流程实例：
	public final static String RUNNING_PROCESS_INSTANCE = URL_API_HOST + "runtime/process-instances";
	
	//历史流程实例：GET history/historic-process-instances
	public final static String HISTORY_PROCESS_INSTANCE = URL_API_HOST + "history/historic-process-instances";
	
	//http://localhost:8080/kft-activiti-demo/rest/history/historic-detail?processInstanceId=77580
	public final static String HISTORY_INSTANCE_DETAIL = URL_API_HOST + "history/historic-detail";
	
	//http://localhost:8080/kft-activiti-demo/rest/history/historic-detail?processInstanceId=77580
	public final static String JBNEWS_LIST = HTTP + HOST + URL_SPLITTER + "oa/news/getlist";
	
	//http://localhost:8080/jbworkflow/rest/repository/process-definitions?key=orderworkflow&sort=version&order=desc&size=1
	public final static String PROCESS_DEFINITION = URL_API_HOST + "repository/process-definitions";
}
